package com.ztgf.order.models.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ztgf.common.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单合同关系表DTO
 *
 * @author chenyu.wang
 * @Date 2020-06-03 15:58:52
 */
@Data
@TableName("order_contract_relation")
@ApiModel(value="订单合同关系表对象", description="订单合同关系表对象")
public class OrderContractRelationDTO extends BaseDTO implements Serializable {
    @ApiModelProperty(value = "订单id")
    private Long orderId;
    @ApiModelProperty(value = "合同地址")
    private String fileUrl;
    @ApiModelProperty(value = "合同模版id")
    private String templetId;
    @ApiModelProperty(value = "合同模版名字")
    private String templetName;
    @ApiModelProperty(value = "契约所合同id")
    private String contractId;
    @ApiModelProperty(value = "签订日期")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")//gosn
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//输入字符串
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")//fastjson
    private Date signTime;
}